<?php 
    class PermissionTableModel extends Table{
        function __construct()
        {
            parent::__construct('bg_permissions');
        }
        public function getPermissionByUserID($userID){
            
            $where = array("permission_user_id"=>$userID);
            return $this->select('assoc',"",$where);
        }
    }
?>